SftTree/NET 2.0

EditValidate Event, SftTree Class

Softel vdm, Inc.

Occurs when cell editing is active and new contents need to be validated.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Public Event EditValidate As EditValidateEventHandler

C#   

public event EditValidateEventHandler EditValidate;

C++   

public: event EditValidateEventHandler EditValidate;

Event Data

The EditValidate event handler receives an argument of type EditValidateEventArgs containing data related to this event.

Comments

The EditValidate event occurs when cell editing is active and new contents need to be validated.

The EditValidate event occurs when editing of one cell is about to end (the user clicks outside of the current cell being edited, cell navigation is handled or if the EndEdit(True) method is used. The EditValidate event allows the application to perform input validation. The new cell text currently contained in the control used for cell editing can be inspected and/or modified. If the text entered or selected is invalid, the Valid field of the EditValidateEventArgs instance must be set to False. This indicates that the new value cannot be accepted and cell editing is to be resumed. Setting Valid to True (default) ends cell editing. The tree control properties cannot be modified during this event. Use the EditEnded event to save the new cell contents.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com